<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>

<title>我的评论</title>
<link href="css/order_my.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

		function skip(curren){
	
     var url="product_searchCommentByPage.action?method=reComment&curren="+curren;
    
    window.location=url;
    }

</script>
</head>
<body>
  
  <div id="nav">
     <span>您的位置： </span>
     <span style="color:#16a085">我的评论</span>
  </div>
  <div id="content">
 <table width="100%" border="0" cellspacing="0" cellpadding="0" id="shopping">
  <tr>
    <td class="goodss" style="text-align:center">评论内容</td>
    <td class="goodss" style="text-align:center">商品信息</td>
    <td class="goodss" >评论时间</td>
    <td class="goodss" >评论人</td>
  </tr>
  <tr>
    <td colspan="8" class="line"></td>
  </tr>
  
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="shopping1">
	
<c:forEach items="${house.recomment}" var="p">
<tr>
<td class="goods order_item_select" >${p.commentContent}</td>
<td class="goods order_item_select">${p.goodsId}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${p.goodsName}</td>
<td class="goods order_item_select">${p.commentTime}</td>
<td class="goods order_item_select">${p.userName}</td>
</tr>
</c:forEach>
</table>
	<table align="center" width=55%>
   	<tr>
   		<td><a onclick="skip('1');" style="cursor:pointer;">首页</a></td>
   		<td><a onclick="skip('${house.currenpage==1?1:house.currenpage-1}');" style="cursor:pointer;">上一页</a></td>
   		<td><a onclick="skip('${house.currenpage==house.totalpage?(house.currenpage):(house.currenpage+1)}');" style="cursor:pointer;">下一页</a></td>
   		<td><a onclick="skip('${house.totalpage}');" style="cursor:pointer;">末页</a></td>
   		<td>当前页:${house.currenpage }/${house.totalpage }</td>
   	</tr>
   	</table>
</div>
</body>
</html>
